package tds.model24.version1;
/**
 * @Company 杭州先锋电子技术股份有限公司
 * @ClassName Invoker
 * @Description 发起者
 * @author tds
 * @Date 2020/2/6 21:15
 * @version 1.0.0
 */
public class Invoker {
    private Command command;

    public void addCommand(Command command){
        this.command = command;
    }

    public Invoker(Command command) {
        this.command = command;
    }

    public void executeCommand(){
        command.execute();
    }

}
